package com.fortune.dao;

import com.fortune.dto.in.distributorMgt.AddRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DPostionDao {
    /**
     * 添加经销商岗位数据
     * @param dealerId
     * @param list
     * @return
     */
    int addPostion(@Param("dealerId") String dealerId, @Param("list") List<AddRole> list);

    /**
     *
     * @param dId
     * @param roleId
     * @return
     */
    int queryRoleExist(@Param("dId") String dId, @Param("roleId") String roleId);
}
